<script id="list-tpl" type="text/html"
        data-params='{"url":"/education/admin/rechargeType","dataName":"couponData","pageid":"#page", "method":"post"}'>
    <table id="example" class="layui-table lay-even" data-name="couponData" data-tplid="list-tpl">
        <thead>
            <tr>
                <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check"
                                      lay-skin="primary"></th>
                <th>充值金额(元)</th>
                <th>赠送金额(元)</th>
                <th>描述</th>
                <th width="80">排序</th>
                <th width="120">开始时间</th>
                <th width="120">结束时间</th>
                <th width="170">发布时间</th>
                <!--<th width="150">操作</th>-->
            </tr>
        </thead>
        <tbody>
            {{# layui.each(d.list, function(index, item){ }}
            <tr>
                <td><input type="checkbox" name="checkbox" value="{{ item.id}}" lay-skin="primary"></td>
                <td>{{ item.money }} </td>
                <td>{{ item.gift_money }} </td>
                <td>{{ item.describe ||''}} </td>
                <td>{{ item.ord || ''}} </td>
                <td>{{ formatDate(item.time_start)}} </td>
                <td>{{ formatDate(item.time_end)}} </td>
                <td>{{ item.create_time||'' }}</td>
                <!--<td>
                    <button class="layui-btn layui-btn-mini" onclick="viewDetail('{{item.id}}');">
                        <i class="iconfont">&#xe653;</i>编辑
                    </button>
                    <button class="layui-btn layui-btn-mini layui-btn-danger ajax"
                            data-list='{"key":"id={{ item.id}}","msg":true,"render":"true","action":"del"}'
                            data-params='{"url": "/education/admin/rechargeType/delete","data":"ids={{ item.id}}", "method":"post", "confirm":"true"}'>
                        <i class="iconfont">&#xe626;</i>删除
                    </button></td>
                </td>-->
            </tr>
            {{# }); }}
        </tbody>

    </table>
</script>